<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.WorkInProgressPage" CodeFile="WorkInProgressPage.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="uc1" TagName="CreateNewProtocolBar" Src="CreateNewProtocolBar.ascx" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>WorkInProgress</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="WorkInProgress" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate"></cc1:Header>
                                <cc1:HumansSubNavigation ID="humansSubNavigation" Visible="false" runat="server"></cc1:HumansSubNavigation>
                                <cc1:AnimalsSubNavigation ID="animalsSubNavigation" Visible="false" runat="server"></cc1:AnimalsSubNavigation>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table class="SearchContainer" cellspacing="2">
                        <tr>
                            <td>
                                <cc2:ExpandingPanel ID="humansSearchContainer" runat="server" ExpansionToggler="humansExpansionToggler">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc1:CommonSearch ID="humansCommonSearch" runat="server" Module="Humans" ViewOptionVisible="False"
                                                        Field1Prompt="Protocol #:" Field1ID="protocolNumber" OnClearSelection="OnClearSelection"
                                                        Field2Prompt="Title:" Field2ID="protocolTitle" OnSearch="OnSearch" LabPickerVisible="false"
                                                        AddSinglePIToSearchCriteria="false"></cc1:CommonSearch>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="display: none">
                                                    <cc2:ExpansionToggler ID="humansExpansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="SearchDynamic">
                                            <tr>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc2:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible" cellspacing="2">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator" runat="server">
                                </cc2:ActivityIndicator>
                                <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                                <cc2:SetFocus ID="setFocus" runat="server" FocusControl="commonSearch_protocolNumber">
                                </cc2:SetFocus>
                                <cc2:Annunciator ContainerID="dynamicTable" ID="annunciator" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table id="Table4" cellspacing="2">
                        <tr>
                            <td align="left">
                                <uc1:CreateNewProtocolBar ID="newProtocolBar" runat="server"></uc1:CreateNewProtocolBar>
                            </td>
                        </tr>
                    </table>
                    <asp:Panel ID="gridContainer" runat="server">
                        <table class="PlaceBar" width="100%">
                            <tr>
                                <td class="PageName">
                                    <asp:Label ID="pageLabel" runat="server"></asp:Label>&nbsp;Records&nbsp;</td>
                                <td align="right">
                                    <cc2:DownloadBar ID="downloadBar" runat="server"></cc2:DownloadBar>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="topPager" runat="server" Visible="false" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                        OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="workInProgressProcesses" runat="server" AllowCustomPaging="True"
                                        CssClass="DataGrid" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                                        Width="100%" OnItemCommand="OnItemCommand" OnItemCreated="OnItemCreated" OnItemDataBound="OnItemDataBound"
                                        OnPageIndexChanged="OnPageIndexChanged" OnSortCommand="OnSort">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:BoundColumn Visible="False" DataField="ProtocolProcessId"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ProtocolNumber" SortExpression="ProtocolNumber" ReadOnly="True"
                                                HeaderText="Protocol #"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="RefMeaning" SortExpression="RefMeaning" ReadOnly="True"
                                                HeaderText="Type"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="PIName" SortExpression="PIName" ReadOnly="True" HeaderText="PI Name">
                                            </asp:BoundColumn>
                                            <asp:ButtonColumn DataTextField="ShortTitle" SortExpression="Title" HeaderText="Title"
                                                CommandName="SelectProtocol"></asp:ButtonColumn>
                                            <asp:BoundColumn DataField="CreateDate" SortExpression="CreateDate" ReadOnly="True"
                                                HeaderText="Date Started"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="LastModifiedDate" SortExpression="LastModifiedDate" HeaderText="Date Last Modified">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="LastModifiedBy" SortExpression="LastModifiedBy" HeaderText="Last Modified By">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn Visible="False" DataField="ProtocolId"></asp:BoundColumn>
                                            <asp:BoundColumn Visible="False" DataField="AccessLevel"></asp:BoundColumn>
                                        </Columns>
                                        <PagerStyle Visible="False"></PagerStyle>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="bottomPager" runat="server" Visible="false" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                        OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
